package cn.zcy.controller.converter;

import cn.zcy.domain.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("/contverter")
public class ConverterController {

    @RequestMapping("test")
    public String show(User user, HttpServletRequest request){
        String realPath = request.getServletContext().getRealPath("/");
        System.out.println("realPath = " + realPath);
        System.out.println("user = " + user);
        return "show";
    }
}
